package com.bbs.service;

import com.bbs.common.QueryResult;
import com.bbs.common.ResponseResult;
import com.bbs.domain.User;
import com.bbs.entity.Result;

import java.util.List;
import java.util.Map;

public interface UserService {

    public ResponseResult manageLogin(User user);

    public List<User> findAll();

    public QueryResult<User> findPage(int page,int size);
    //查询用户
    User findUser( String username);
    /**
     * @author chen hong wei
     * @Description 更改用户权限  申请
     * @Date 14:14 2019/9/22
     * @Param [user]
     * @return void
     **/
    void update(User user);

    /**
     * 查询在线的用户
     * @return
     */
    Map<String,Object> findUserByLoginStatus();


    /***
     * 用户注册
     */
    public Result userRegister (User user);

    User findUserByUsername(String username);
}
